<template>
  <div>
    <ul>
      <li v-for=" m in  messageArr" :key="m.id">
        <router-link :to="`/home/message/detail/${m.id}/${m.title}/${m.content}`">{{ m.title}}</router-link>&nbsp;&nbsp;
      </li>
    </ul>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "Message",
  data() {
    return {
      messageArr:[
        {id:"001",title:'手机',content:"联想"},
        {id:"002",title:'电脑',content:"华为"},
        {id:"003",title:'鼠标',content:"无名"},
      ]
    }
  },
}
</script>

<style scoped>

</style>